home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games: 500 MB Amiga Software
/
500 MB Amiga Software - Euber 130 - Amiga Games Disc & Mag.iso
/
userbox
/
publicdomain
/
mui-filofax
/
hd_install
< prev
next >
Wrap
Text File
|
1995-10-27
|
11KB
|
415 lines
(procedure INSTALL
(SET Filo_dest
(askdir
(prompt #ziel)
(help #ziel_hilfe)
(default @default-dest)
)
)
(complete 10)
(makedir (tackon Filo_dest "FiloFax") (infos))
(makedir (tackon "SYS:S/" "FiloData"))
(SET Filo_dest (tackon Filo_dest "FiloFax"))
(set @default-dest Filo_dest)
(copyfiles
(source "")
(dest Filo_dest) (pattern "#?") (infos)
)
(copyfiles
(source "FiloInter")
(dest "SYS:S/FiloData/")
)
(copyfiles
(source "FiloFax.iv")
(dest "SYS:S/FiloData/")
)
(complete 70)
((SET zusatze (askchoice
(prompt #zusatz)
(choices #zusatz_wahl1
#zusatz_wahl2
#zusatz_wahl3)
(help #zusatz_hilfe)
(DEFAULT 0)
))
)
(IF (= zusatze 0) (
(copyfiles
(source "FiloCheck")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(complete 85)
(IF (= zusatze 1) (
(copyfiles
(source "FiloCheck-Light")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck-Light.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck-Light"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(copylib (prompt #library)
(help "")
(source lib)
(dest "LIBS:")
(confirm)
)
(IF (< (/ (getversion) 65536) 38)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/AmigaGuide")
)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/Multiview")
)
)
(complete 100)
)
(procedure UPDATE
(message #update)
(SET Filo_dest
(askdir
(prompt #u_ziel)
(help #u_ziel_hilfe)
(default @default-dest)
)
)
(complete 10)
(set @default-dest Filo_dest)
(run "delete " Filo_dest "ALL FORCE")
;(delete Filo_dest "#?")
(makedir (tackon "SYS:S/" "FiloData"))
(if (exists "SYS:S/FiloFax.terms")
(copyfiles (source "SYS:S/FiloFax.terms") (dest "SYS:S/FiloData"))
)
(if (exists "SYS:S/Filo.Key")
(copyfiles (source "SYS:S/Filo.Key") (dest "SYS:S/FiloData"))
)
(if (exists "SYS:S/FiloPrefs")
(copyfiles (source "SYS:S/FiloPrefs") (dest "SYS:S/FiloData"))
)
(copyfiles
(source "")
(dest Filo_dest) (pattern "#?") (infos)
)
(copyfiles
(source "FiloInter")
(dest "SYS:S/FiloData/")
)
(copyfiles
(source "FiloFax.iv")
(dest "SYS:S/FiloData/")
)
(complete 70)
((SET zusatze (askchoice
(prompt #zusatz)
(choices #zusatz_wahl1
#zusatz_wahl2
#zusatz_wahl3)
(help #zusatz_hilfe)
(DEFAULT 0)
))
)
(IF (= zusatze 0) (
(copyfiles
(source "FiloCheck")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(complete 85)
(IF (= zusatze 1) (
(copyfiles
(source "FiloCheck-Light")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck-Light.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck-Light"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(copylib (prompt #library)
(help "")
(source lib)
(dest "LIBS:")
(confirm)
)
(IF (< (/ (getversion) 65536) 38)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/AmigaGuide")
)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/Multiview")
)
)
(complete 100)
)
(procedure UPDATE2
(message #update)
(SET Filo_dest
(askdir
(prompt #u_ziel)
(help #u_ziel_hilfe)
(default @default-dest)
)
)
(complete 10)
(SET @default-dest Filo_dest)
(run "delete " Filo_dest "ALL FORCE")
;(delete Filo_dest "#?")
(makedir (tackon "SYS:S/" "FiloData"))
(copyfiles
(source "")
(dest Filo_dest) (pattern "#?") (infos)
)
(copyfiles
(source "FiloInter")
(dest "SYS:S/FiloData/")
)
(copyfiles
(source "FiloFax.iv")
(dest "SYS:S/FiloData/")
)
(complete 70)
((SET zusatze (askchoice
(prompt #zusatz)
(choices #zusatz_wahl1
#zusatz_wahl2
#zusatz_wahl3)
(help #zusatz_hilfe)
(DEFAULT 0)
))
)
(IF (= zusatze 0) (
(copyfiles
(source "FiloCheck")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(complete 85)
(IF (= zusatze 1) (
(copyfiles
(source "FiloCheck-Light")
(dest "SYS:WBStartup/")
)
(copyfiles
(source "FiloCheck-Light.info")
(dest "SYS:WBStartup/")
)
(tooltype (dest (tackon "SYS:WBStartup/" "FiloCheck-Light"))
(settooltype "FILO_FAX" (tackon Filo_dest "FiloFax 0"))
(settooltype "FILO_STAT" (tackon Filo_dest "FiloFax 1"))
(settooltype "FILO_NOTE" (tackon Filo_dest "FiloNote"))
)
))
(copylib (prompt #library)
(help "")
(source lib)
(dest "LIBS:")
(confirm)
)
(IF (< (/ (getversion) 65536) 38)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/AmigaGuide")
)
(tooltype (dest (tackon Filo_dest "FiloFax.guide"))
(setdefaulttool "sys:utilities/Multiview")
)
)
(complete 100)
)
(procedure ende
(message #ende)
)
(procedure setzen
(set #ziel (cat ""
"In welche Disk/Schublade soll FiloFax installiert werden?"
))
(set #ziel_hilfe (cat ""
"Das Installationsprogramm erstellt das Verzeichnis \n"
"\"FiloFax\" in diesem Verzeichnis. \n"
"Alle \"FiloFax\" Dateien werden in dieses Verzeichnis\n"
"kopiert \n"
))
(set #zusatz (cat ""
"Wollen Sie folgende Installationsteile auch durchführen ?\n"
))
(set #zusatz_wahl1 (cat ""
"FiloCheck (MUI) in die WB-Startup:"
))
(set #zusatz_wahl2 (cat ""
"FiloCheck (Light) in die WB-Startup:"
))
(SET #zusatz_wahl3 (cat ""
"Nichts in die WB-Startup installieren..."
))
(set #zusatz_hilfe (cat ""
"Das Programm FiloCheck wird beim Booten \n"
"automatisch gestartet. (FiloCheck wird \n"
"über die Tooltypes konfiguriert, mehr \n"
"dazu in der Anleitung) \n\n"
"1. Ist die MUI-Version von FiloCheck\n"
"2. Ist die GadTools-Version von FiloCheck"
))
(set #library (cat ""
"FiloFax benöntigt die ReqTools.library \n"
"Wollen Sie diese jetzt installieren \n"
))
(set #update (cat ""
"Sie haben sich für eine Updateinstallation entschieden.\n\n"
"Wählen Sie im folgenden Dateirequester, den Pfad von \n"
"FiloFax aus. Die Daten diese Verzeichnisses sind dann\n"
"unwiderruflich verloren und werden durch das Update \n"
"ersetzt. Falls Sie also z.b. noch eigene Dateien in\n"
"diesem Verzeichnis installiert haben, brechen Sie nun\n"
"ab und machen Sie von Ihren Dateien ein Backup."
))
(set #u_ziel (cat ""
"Bitte wählen Sie den Pfad in dem sich die alte Version von "
"FiloFax befindet."
))
(set #u_ziel_hilfe (cat ""
"Das Installationsprogramm löscht alle Daten dieses Verzeichnises.\n"
"Danach wird die neue Version von FiloFax in dieses Verzeichnises "
"kopiert. "
))
(set #ende (cat "\n"
"\n\n"
"Die Installation ist nun beendet. \n\n"
"Bitte starten Sie ihren Rechner neu um FiloFax \n"
"richtig zu nutzen. \n"
))
)
(SET lib "libs/reqtools.library")
(SET @default-dest "SYS:")
(complete 0)
(IF (< (/ (getversion) 65536) 37)
(
(message "\n Tut mir leid, dieses Paket benoetigt mind. OS2.04.\n")
(exit (quiet))
)
)
(SET neu_update (askchoice
(prompt "Welche Art der Installation wünschen Sie ?")
(choices
"Neu Installation"
"Update Installation von v1.0"
"Update Installation von v2.0"
)
(help "Falls Sie schon eine Version von FiloFax instaliert haben sollten Sie Update wählen")
))
(setzen)
(IF (= neu_update 0) (INSTALL))
(IF (= neu_update 1) (UPDATE))
(IF (= neu_update 2) (UPDATE2))
(ende)
(exit (quiet))